import { selectOption, TableSetting } from "./publictype";

//面談考核類型
const assesstype = [
  {
    value: 1,
    label: "工作表現",
  },
  {
    value: 2,
    label: "核心價值(含態度、能力等)",
  },
];

const radiotype = [
  {
    value: 2,
    label: "月度考核",
  },
];

const assessresult = [
  {
    value: 1,
    label: "觀察改善一個月",
  },
  {
    value: 2,
    label: "不勝任",
  },
  {
    value: 3,
    label: "其他",
  },
];

const tablesettingArrInterview: TableSetting[] = [
  {
    dataIndex: "rowid",
    key: "rowid",
    title: "操作",
    formtypes: "unused",
  },
  {
    dataIndex: "seq",
    key: "seq",
    title: "序號",
    formtypes: "unused",
  },
  {
    dataIndex: "project",
    key: "project",
    title: "考核項目",
    formtypes: "textarea",
  },
  {
    dataIndex: "target",
    key: "target",
    title: "期望目標",
    formtypes: "textarea",
  },
  {
    dataIndex: "examine_describe",
    key: "examine_describe",
    title: "實際達成情況",
    formtypes: "textarea",
  },
  {
    dataIndex: "improve_describe",
    key: "improve_describe",
    title: "不足/需改善之處",
    formtypes: "textarea",
  },
];

//改善計劃
const improveTheme = [
  {
    value: 1,
    label: "工作表現未達期望目標",
  },
  {
    value: 2,
    label: "工作態度/能力不符要求",
  },
  {
    value: 3,
    label: "其他異常表現/事件",
  },
];

const improveRadio = [
  { value: 1, label: "合格，可回歸正常工作" },
  { value: 2, label: "無效，不適任人員提報處置" },
  { value: 3, label: "仍需觀察改善" },
];

const tablesettingArrImprove: TableSetting[] = [
  {
    dataIndex: "id",
    key: "id",
    title: "id",
    formtypes: "unused",
  },
  {
    dataIndex: "project",
    key: "project",
    title: "待改善項目",
    formtypes: "textarea",
  },
  {
    dataIndex: "purpose",
    key: "purpose",
    title: "改善目標",
    formtypes: "textarea",
  },
  {
    dataIndex: "limit_start",
    key: "limit_start",
    title: "改善時間起",
    formtypes: "datepicker",
  },
  {
    dataIndex: "limit_end",
    key: "limit_end",
    title: "改善時間止",
    formtypes: "datepicker",
  },
  {
    dataIndex: "is_adopt",
    key: "is_adopt",
    title: "是否達標",
    formtypes: "select",
  },
  {
    dataIndex: "result",
    key: "result",
    title: "目標達成情況說明",
    formtypes: "textarea",
  },
];

const selectOptions: selectOption[] = [
  {
    key: "is_adopt",
    value: [
      {
        value: 1,
        label: "是",
      },
      {
        value: 2,
        label: "否",
      },
    ],
  },
];

//query
const orgList = [
  { value: 1, label: " " },
  { value: 2, label: "CC" },
  { value: 3, label: "CF" },
  { value: 4, label: "CH" },
];


export {
  assesstype,
  radiotype,
  assessresult,
  tablesettingArrInterview,
  improveTheme,
  tablesettingArrImprove,
  selectOptions,
  improveRadio,
  orgList,
};
